package com.ruanjian2001.Service;

import com.ruanjian2001.entity.Order;
import com.ruanjian2001.entity.User;

import java.util.List;

/**
 * 测试Service类
 */
public class Test {
    public static void main(String[] args) {
        /**
         * //测试userServlet
         */
//        UserServlet US = new UserServlet();
//        User user = US.login("aaa","111111");
//        if(user == null){
//            System.out.println("登录失败");
//        }else{
//            System.out.println("登录成功");
//            System.out.println(user);

        /**
         *  测试userServlet
         */
//        OrderService os = new OrderService();
//        User us = new User();
//        us.setId(2);
//        us.setUsername("ww");
//        us.setPassword("1111");
//        List<Order> orderByUser = os.findOrderByUser(us);
//        System.out.println(orderByUser.size());

    }
}

